package model

import (
	"time"

	"gorm.io/plugin/soft_delete"
)

type BaseModel struct {
	Id        uint                  `gorm:"primarykey" json:"id"`
	CreatedAt time.Time             `gorm:"not null" json:"createdAt"`
	UpdatedAt time.Time             `gorm:"not null" json:"updatedAt"`
	DeletedAt soft_delete.DeletedAt `gorm:"uniqueIndex:udx_default" json:"deletedAt"`
}
